import { requestClient } from '#/api/request';

export async function getAgentList(data: any) {
  return requestClient.get('/app/agent/get', {
    params: data,
  });
}
export async function addAgent(data: any) {
  return requestClient.put('/app/agent/update', data, {});
}
// export async function addAgent(data: any) {
//   return requestClient.post('/app/agent/add', data, {});
// }
export async function dictAdd(data: any) {
  return requestClient.post('/admin/dict/add', data, {});
}
export async function updateDict(data: any) {
  return requestClient.put('/admin/dict/update', data, {});
}
export async function deleteDict(data: any) {
  return requestClient.delete('/admin/dict/delete', {
    data,
  });
}
export async function getDict(data: any) {
  return requestClient.post('/admin/dict/get-page', data);
}
